package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPrincipalInductionIdDto
 * @使用场景
 */
@Data
public class BffPrincipalInductionIdDto implements Serializable {

    /**
     * 就职记录ID
     */
    @ApiModelProperty("就职记录ID")
    private String inductionRecordId;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;
    /**
     * 接收部门ID
     */
    @ApiModelProperty("接收部门ID")
    private String receiveSubjectId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPrincipalInductionIdDto that = (BffPrincipalInductionIdDto) o;
        return inductionRecordId == that.inductionRecordId && idCardName == that.idCardName && receiveSubjectId == that.receiveSubjectId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), inductionRecordId, idCardName, receiveSubjectId);
    }

}
